﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="View_DataRepeater2.aspx.cs" Inherits="AFCEPF.Samples.WebSamples.Controls.View_DataRepeater2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>
        REPEATER Bound to DATASET (With alternating item Formating)</h3>
    <br />
    <asp:Repeater ID="Repeater1" runat="server">
        <HeaderTemplate>
            <table border="1" width="100%">
                <tr>
                    <th>
                        Title
                    </th>
                    <th>
                        Artist
                    </th>
                    <th>
                        Country
                    </th>
                    <th>
                        Company
                    </th>
                    <th>
                        Price
                    </th>
                    <th>
                        Year
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#Eval("title")%>
                </td>
                <td>
                    <%#Eval("artist")%>
                </td>
                <td>
                    <%#Eval("country")%>
                </td>
                <td>
                    <%#Eval("company")%>
                </td>
                <td>
                    <%#Eval("price")%>
                </td>
                <td>
                    <%#Eval("year")%>
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr bgcolor="#e8e8e8">
                <td>
                    <%#Eval("title")%>
                </td>
                <td>
                    <%#Eval("artist")%>
                </td>
                <td>
                    <%#Eval("country")%>
                </td>
                <td>
                    <%#Eval("company")%>
                </td>
                <td>
                    <%#Eval("price")%>
                </td>
                <td>
                    <%#Eval("year")%>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <br />
    <br />
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</asp:Content>
